import request from '@/utils/request'

const apiUrl = '/api/file-review'

export function getFileReviewList(params) {
    return request({
        url: `${apiUrl}/page`,
        method: 'get',
        params
    })
}

export function getFileReviewById(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'get'
    })
}

export function saveFileReview(data) {
    return request({
        url: `${apiUrl}/save`,
        method: 'post',
        data
    })
}

export function deleteFileReview(id) {
    return request({
        url: `${apiUrl}/${id}`,
        method: 'delete'
    })
} 